import request from '@/utils/request'

// 获取友情链接列表
export function getList(params) {
  return request({
    url: '/blog-core/back/links/list',
    method: 'get',
    params
  })
}

// 添加或更新友情链接
export function addOrUpdate(data) {
  return request({
    url: '/blog-core/back/links/addOrUpdate',
    method: 'post',
    data
  })
}

// 删除友情链接
export function deleteLikns(id) {
  return request({
    url: '/blog-core/back/links/' + id,
    method: 'delete'
  })
}
